package org.jeecg.modules.jxc.purchase.service;

import org.jeecg.modules.jxc.homepage.entity.JxcGoods;
import org.jeecg.modules.jxc.purchase.entity.*;
import org.jeecg.modules.jxc.statistical.entity.JxcPurchaseList;

import java.util.List;
import java.util.Map;
import java.util.function.Supplier;

/**
 * @description:
 * @company: yaorange
 * @author: Mr.Huang
 * @version: 1.0
 * @create: 2021-12-21 15:49:13
 */
public interface PurchaseService {
    List<org.jeecg.modules.demo.jxc.baseData.entity.JxcSupplier> getList();

    List<GoodsType> getGoodsType();

    Result<JxcGoods> getGoods(Integer pageNo, Integer pageSize, Integer id);

    JxcGoods getGoodById(Integer id);

    void addOrder(String orderId, List<PurchaseGoods> list, JxcPurchaseList purchase);

    Boolean returnOrder(String orderId, List<ReturnGoods> list, ReturnPurchase purchase);

    List<Map<String, Object>> findPurchaseList(String purchaseNumber, Integer supplierId, Integer state, String sTime, String eTime);
}
